package mapper;

import entity.Customer_loss;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface Customer_lossMapper {
    //查询所有数据
    @Select("select * from customer_loss")
    List<Customer_loss> selectAll();
    //通过分页查询
    List<Customer_loss> selectByPage(Map<String,Object> params);
    //通过id查询数据


    Customer_loss selectById(Integer id);

    //插入数据
    int insert(Customer_loss customer_loss);

    //删除数据
    @Delete("delete from customer_loss where id=#{id}")
    int delete(Integer id);

    //修改数据
    int update(Customer_loss customer_loss);

}
